package com.bawei.shopping2.repository

import com.bawei.shopping2.entity.BannerEntity
import com.bawei.shopping2.entity.CategoryEntity
import com.bawei.shopping2.entity.GoodsEntity
import com.bawei.shopping2.entity.UserEntity
import com.bawei.shopping2.http.ApiResponse
import com.bawei.shopping2.http.ApiService
import com.bawei.shopping2.http.RetrofitManager
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Query
import javax.inject.Inject
//仓库
class LoginRepository @Inject constructor(private var apiService: ApiService){
    suspend fun login( requestBody: RequestBody):ApiResponse<UserEntity>{
        return apiService.login(requestBody)
    }
}